package cn.com.sbell.vss.ems.entity;

import java.util.Date;

import cn.com.sbell.vss.BaseObject;

/**
 * @bean name="log"
 * @hibernate.class table="EMS_LOG"
 * @author Yifu.HUANG
 */
public class Log extends BaseObject {

	private String id;

	private int logLevel;

	private String userId;

	private String command;

	private String inputParameters;

	private String resultCode;

	private String resultMessage;

	private Date logDate;
	
	private String domainId;

	/**
	 * @hibernate.id column="ID" generator-class="uuid.hex" length="32"
	 * @return
	 */
	public String getId() {
		return id;
	}

	/**
	 * @hibernate.property column="LOG_LEVEL" not-null="true" unique="false"
	 * @return
	 */
	public int getLogLevel() {
		return logLevel;
	}

	/**
	 * @hibernate.property column="USER_ID" length="32" not-null="false"
	 *                     unique="false"
	 * @return
	 */
	public String getUserId() {
		return userId;
	}

	/**
	 * @hibernate.property column="COMMAND" length="64" not-null="true"
	 *                     unique="false"
	 * @return
	 */
	public String getCommand() {
		return command;
	}

	/**
	 * @hibernate.property column="INPUT_PARAMETERS" length="2048"
	 *                     not-null="false" unique="false"
	 * @return
	 */
	public String getInputParameters() {
		return inputParameters;
	}

	/**
	 * @hibernate.property column="LOG_DATE" not-null="true" unique="false"
	 *
	 * @return
	 */
	public Date getLogDate() {
		return logDate;
	}

	/**
	 * @hibernate.property column="RESULT_CODE" length="10" not-null="true"
	 *                     unique="false"
	 * @return
	 */
	public String getResultCode() {
		return resultCode;
	}

	/**
	 * @hibernate.property column="RESULT_MESSAGE" length="512" not-null="false"
	 *                     unique="false"
	 * @return
	 */
	
	public String getResultMessage() {
		return resultMessage;
	}

	public void setResultCode(String resultCode) {
		this.resultCode = resultCode;
	}

	public void setResultMessage(String resultMessage) {
		this.resultMessage = resultMessage;
	}

	public void setLogLevel(int level) {
		this.logLevel = level;
	}

	public void setLogDate(Date created) {
		this.logDate = created;
	}

	public void setId(String id) {
		this.id = id;
	}

	public void setUserId(String name) {
		this.userId = name;
	}

	public void setCommand(String permission) {
		this.command = permission;
	}

	public void setInputParameters(String tableName) {
		this.inputParameters = tableName;
	}
	/**
	 * @hibernate.property column="DOMAIN_ID" length="32" not-null="true"
	 *                     unique="false"
	 * @return
	 */
	public String getDomainId() {
		return domainId;
	}

	public void setDomainId(String domainId) {
		this.domainId = domainId;
	}
}
